﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011E3 RID: 4579
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpringRecoverSingleAvatarScRsp : IMessage<SpringRecoverSingleAvatarScRsp>, IMessage, IEquatable<SpringRecoverSingleAvatarScRsp>, IDeepCloneable<SpringRecoverSingleAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170039FA RID: 14842
		// (get) Token: 0x0600CD15 RID: 52501 RVA: 0x0022887B File Offset: 0x00226A7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpringRecoverSingleAvatarScRsp> Parser
		{
			get
			{
				return SpringRecoverSingleAvatarScRsp._parser;
			}
		}

		// Token: 0x170039FB RID: 14843
		// (get) Token: 0x0600CD16 RID: 52502 RVA: 0x00228882 File Offset: 0x00226A82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpringRecoverSingleAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039FC RID: 14844
		// (get) Token: 0x0600CD17 RID: 52503 RVA: 0x00228894 File Offset: 0x00226A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpringRecoverSingleAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600CD18 RID: 52504 RVA: 0x0022889B File Offset: 0x00226A9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverSingleAvatarScRsp()
		{
		}

		// Token: 0x0600CD19 RID: 52505 RVA: 0x002288A4 File Offset: 0x00226AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverSingleAvatarScRsp(SpringRecoverSingleAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.id_ = other.id_;
			this.hp_ = other.hp_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CD1A RID: 52506 RVA: 0x002288F8 File Offset: 0x00226AF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverSingleAvatarScRsp Clone()
		{
			return new SpringRecoverSingleAvatarScRsp(this);
		}

		// Token: 0x170039FD RID: 14845
		// (get) Token: 0x0600CD1B RID: 52507 RVA: 0x00228900 File Offset: 0x00226B00
		// (set) Token: 0x0600CD1C RID: 52508 RVA: 0x00228908 File Offset: 0x00226B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170039FE RID: 14846
		// (get) Token: 0x0600CD1D RID: 52509 RVA: 0x00228911 File Offset: 0x00226B11
		// (set) Token: 0x0600CD1E RID: 52510 RVA: 0x00228919 File Offset: 0x00226B19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x170039FF RID: 14847
		// (get) Token: 0x0600CD1F RID: 52511 RVA: 0x00228922 File Offset: 0x00226B22
		// (set) Token: 0x0600CD20 RID: 52512 RVA: 0x0022892A File Offset: 0x00226B2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Hp
		{
			get
			{
				return this.hp_;
			}
			set
			{
				this.hp_ = value;
			}
		}

		// Token: 0x17003A00 RID: 14848
		// (get) Token: 0x0600CD21 RID: 52513 RVA: 0x00228933 File Offset: 0x00226B33
		// (set) Token: 0x0600CD22 RID: 52514 RVA: 0x0022893B File Offset: 0x00226B3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x0600CD23 RID: 52515 RVA: 0x00228944 File Offset: 0x00226B44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpringRecoverSingleAvatarScRsp);
		}

		// Token: 0x0600CD24 RID: 52516 RVA: 0x00228954 File Offset: 0x00226B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpringRecoverSingleAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Id == other.Id && this.Hp == other.Hp && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CD25 RID: 52517 RVA: 0x002289C0 File Offset: 0x00226BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.Hp != 0U)
			{
				num ^= this.Hp.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CD26 RID: 52518 RVA: 0x00228A50 File Offset: 0x00226C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CD27 RID: 52519 RVA: 0x00228A58 File Offset: 0x00226C58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CD28 RID: 52520 RVA: 0x00228A64 File Offset: 0x00226C64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Id);
			}
			if (this.Hp != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Hp);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(112);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CD29 RID: 52521 RVA: 0x00228AF8 File Offset: 0x00226CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.Hp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Hp);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CD2A RID: 52522 RVA: 0x00228B80 File Offset: 0x00226D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpringRecoverSingleAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.Hp != 0U)
			{
				this.Hp = other.Hp;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CD2B RID: 52523 RVA: 0x00228BF8 File Offset: 0x00226DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CD2C RID: 52524 RVA: 0x00228C04 File Offset: 0x00226E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 40U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.Hp = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400524B RID: 21067
		private static readonly MessageParser<SpringRecoverSingleAvatarScRsp> _parser = new MessageParser<SpringRecoverSingleAvatarScRsp>(() => new SpringRecoverSingleAvatarScRsp());

		// Token: 0x0400524C RID: 21068
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400524D RID: 21069
		public const int RetcodeFieldNumber = 5;

		// Token: 0x0400524E RID: 21070
		private uint retcode_;

		// Token: 0x0400524F RID: 21071
		public const int IdFieldNumber = 6;

		// Token: 0x04005250 RID: 21072
		private uint id_;

		// Token: 0x04005251 RID: 21073
		public const int HpFieldNumber = 11;

		// Token: 0x04005252 RID: 21074
		private uint hp_;

		// Token: 0x04005253 RID: 21075
		public const int AvatarTypeFieldNumber = 14;

		// Token: 0x04005254 RID: 21076
		private AvatarType avatarType_;
	}
}
